package com.wanmait.recruitment.service.impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.recruitment.mapper.WorkExMapper;
import com.wanmait.recruitment.pojo.WorkEx;
import com.wanmait.recruitment.service.WorkExService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional(rollbackFor = Exception.class)
public class WorkExServicelmpl  implements WorkExService {
    @Resource
    private WorkExMapper workExMapper;
    @Override
    public void insert(WorkEx workEx) {
        workExMapper.insertWorkEx(workEx);

    }
    @Override
    public  int selectCountById(){

        return workExMapper.CountIdWorkEx();
    }

    @Override
    public void delete(Integer id) {
        workExMapper.deleteWorkEx(id);

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(WorkEx object) {

    }

    @Override
    public WorkEx findById(Integer id) {
        return workExMapper.workExById(id);
    }
    @Override
    public  List<WorkEx> selectList(Integer id){
        return  workExMapper.selectLsit(id);
    }

    @Override
    public List<WorkEx> findAll() {
        return null;
    }

    @Override
    public List<WorkEx> findAll(WorkEx object) {
        return null;
    }

    @Override
    public PageInfo<WorkEx> findPage(int pageNum, int pageSize) {
        return null;
    }

    @Override
    public  void update(WorkEx workEx,Integer id){

       workExMapper.updateWorkEx(workEx,id);

    }
}
